package com.woniuxy.userassembly.dao;

import com.woniuxy.userassembly.model.UserFinance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-22
 */
public interface UserFinanceMapper extends BaseMapper<UserFinance> {

    @Insert("insert into hotel_user_finance (user_id,status,funds_input,funds_output,funds_amount,record_time,out_trade_no) value(#{userId},#{status},#{fundsInput},#{fundsOutput},#{fundsAmount},#{recordTime},#{outTradeNo})")
    int addUserFinance(UserFinance finance);


}
